package com.example.houtai.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.example.houtai.entity.SysInterfaceInfo;
import com.example.houtai.mapper.SysInterfaceInfoMapper;
import com.example.houtai.service.ISysInterfaceInfoService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.github.pagehelper.PageHelper;
import com.github.pagehelper.PageInfo;
import com.org.dto.InterfaceDto;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 服务实现类
 * </p>
 *
 * @author 龚梦
 * @since 2021-03-24
 */
@Service
public class SysInterfaceInfoServiceImpl extends ServiceImpl<SysInterfaceInfoMapper, SysInterfaceInfo> implements ISysInterfaceInfoService {
    @Autowired
    private SysInterfaceInfoMapper interfaceInfoMapper;

    @Override
    public PageInfo<SysInterfaceInfo> interfaceList(InterfaceDto interfaceDto) {
        PageHelper.startPage(interfaceDto.getPageNum(), interfaceDto.getPageSize());
        List<SysInterfaceInfo> list = interfaceInfoMapper.interfaceList(interfaceDto);
        return new PageInfo<>(list);
    }

    @Override
    public void Interfaceupdate(InterfaceDto interfaceDto) {
        interfaceInfoMapper.Interfaceupdate(interfaceDto);
    }

    @Override
    public void deletes(String[] ids) {
        interfaceInfoMapper.deletes(ids);
    }


}
